
KEY.KEY_LEFT = function(key,keyName,a){
	var idArr = a.id.split('-');
	var type = idArr[0];
	if(type == 'nav'){
		var prevA=$(a).prev();
		if(prevA.length > 0){prevA.focus()}
	}
}

KEY.KEY_RIGHT = function(key,keyName,a){
	var idArr = a.id.split('-');
	var type = idArr[0];
	if(type == 'nav'){
		var	nextA=$(a).next();
		if(nextA.length > 0){nextA.focus()}
		
	}
}

KEY.KEY_UP = function(key,keyName,a){
	var idArr = a.id.split('-');
	var type = idArr[0];
	if(type == 'nav'){
		var id = parseInt(idArr[2]);
		
		if(id>5){ 
			$('#selBox').hide();$('#mes-a-1').focus();
		}else{
			var bo = indexBox.setFocusUp();
			if(bo ){ $('#selBox').hide();}
		}
	}
}

KEY.KEY_DOWN = function (key,keyName,a){
	var idArr = a.id.split('-'); $.log(a.id);
	var type = idArr[0]; $.log(lastFocusId);
	if(type == 'mes'){
		$('#nav-a-' +lastFocusId).focus();
	}
}

KEY.KEY_RETURN = function(){ 
	return false;
}


